import React from 'react'
import { View } from '@tarojs/components'
import i18n from '@I18N'
import DoctorAdviceItem from '@COMPONENTS/Consultation/DoctorAdviceItem'
import './DoctorAdviceContent.scss'

const DoctorAdviceContent = ({ Diagnosis, DoctorAdvice, MedicineArray }) => {
  const language = 'zh'
  return (
    <View className="doctor-advice-detail-container">
      <View className="doctor-advice-detail-line" />
      <View className="doctor-advice-detail">
        <DoctorAdviceItem title={i18n.message.doctor_advice()} content={DoctorAdvice} />
        <DoctorAdviceItem title={i18n.message.disease()} content={Diagnosis} />
        <DoctorAdviceItem
          title={i18n.message.medication_advices()}
          isMedication
          medicineArray={MedicineArray}
          language={language}
        />
      </View>
    </View>

  )
}

export default DoctorAdviceContent
